/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Forms;

import BusinessEntity.BE_Estimacion;
import BusinessEntity.BE_Personal;
import BusinessEntity.BE_Planificacion;
import BusinessEntity.BE_Requerimiento;
import BusinessEntity.BE_Usuario;
import BusinessLogic.BL_Estimacion;
import BusinessLogic.BL_Planificacion;
import BusinessLogic.BL_Requerimiento;
import Comun.Constantes;
import Comun.GUI;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JInternalFrame;

/**
 *
 * @author kuntouch
 */
public class Frm_Planificacion extends javax.swing.JInternalFrame {

    private JInternalFrame frmPadre;
    //Personal
    private BE_Personal objBEPersonal;
    //usuario
    private BE_Usuario objBEUsuario;
    //Requerimiento Seleccionado
    private BE_Requerimiento objBERequerimientoSeleccionado;
    //Opcion
    private int intOpcion;
    //fechas
    private Date datFechaInicio;
    private Date datFechaFin;
    /**
     * Creates new form Frm_Planificacion
     */
    public Frm_Planificacion(JInternalFrame frmVentana, int intCodigoRequerimiento, int intOpcion) throws InstantiationException, IllegalAccessException, SQLException {
        initComponents();
        this.setTitle("Planificación de Requerimiento");
        setDefaultCloseOperation(0);
        this.frmPadre = frmVentana;
        this.objBEPersonal = ((Frm_BandejaTarea) this.frmPadre).getObjBEPersonal();
        this.objBEUsuario = ((Frm_BandejaTarea) this.frmPadre).getObjBEUsuario();
        this.intOpcion = intOpcion;
        inicializar(intCodigoRequerimiento);
    }
    
       private void inicializar(int intCodigoRequerimiento) throws InstantiationException, IllegalAccessException, SQLException{
        
        this.objBERequerimientoSeleccionado = BL_Requerimiento.obtenerInstancia().obtenerRequerimientoID(intCodigoRequerimiento);
        txtCodigo.setText(Integer.toString(getObjBERequerimientoSeleccionado().getIdRequerimiento()));
        txtNombre.setText(getObjBERequerimientoSeleccionado().getStrNombre());
        jtxDescripcion.setText(getObjBERequerimientoSeleccionado().getStrDescripcion());

        BE_Estimacion objBE_Estimacion = BL_Estimacion.obtenerInstancia().obtenerEstimacionIdRequerimiento(this.objBERequerimientoSeleccionado);
        
        txtCantHoras.setText(String.valueOf(objBE_Estimacion.getIntTotalHoras()));
        txtCantRecursos.setText(String.valueOf(objBE_Estimacion.getIntCantRecursos()));

        
        
        if(this.intOpcion == Constantes.OpcionModificar){
        /*
            BE_Planificacion objBE_Planificacion = new BE_Planificacion();
          
        BE_Personal objBE_Personal = new BE_Personal();
        objBE_Personal.setIdPersonal(this.objBERequerimientoSeleccionado.getIntUsuarioAsignado());
        this.cmbPersonalAsig.setSelectedItem(objBE_Personal);*/
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        lblCodigo = new javax.swing.JLabel();
        txtCodigo = new javax.swing.JTextField();
        lblNombre = new javax.swing.JLabel();
        txtNombre = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtxDescripcion = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        lblCantHoras = new javax.swing.JLabel();
        txtCantHoras = new javax.swing.JTextField();
        txtCantRecursos = new javax.swing.JTextField();
        lblCantRecursos = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jdcFechaInicio = new com.toedter.calendar.JDateChooser();
        jdcFechaFin = new com.toedter.calendar.JDateChooser();
        btnEnviarPlanificacion = new javax.swing.JButton();
        btnReplanificar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        btnAceptar = new javax.swing.JButton();

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Datos Requerimiento"));

        lblCodigo.setText("Código:");

        txtCodigo.setEnabled(false);

        lblNombre.setText("Nombre:");

        txtNombre.setEnabled(false);

        jtxDescripcion.setColumns(20);
        jtxDescripcion.setRows(5);
        jtxDescripcion.setEnabled(false);
        jScrollPane1.setViewportView(jtxDescripcion);

        lblDescripcion.setText("Descripción:");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCodigo)
                    .addComponent(lblDescripcion))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(txtCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
                        .addGap(48, 48, 48)
                        .addComponent(lblNombre)
                        .addGap(18, 18, 18)
                        .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 514, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblCodigo)
                        .addComponent(txtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(lblNombre)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Estimación"));

        lblCantHoras.setText("Cantidad de horas:");

        txtCantHoras.setEnabled(false);

        txtCantRecursos.setEnabled(false);

        lblCantRecursos.setText("Cantidad de recursos:");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblCantHoras)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(txtCantHoras, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblCantRecursos)
                .addGap(18, 18, 18)
                .addComponent(txtCantRecursos, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCantHoras)
                    .addComponent(txtCantHoras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCantRecursos)
                    .addComponent(txtCantRecursos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Planificación:"));

        jLabel6.setText("Fecha inicio:");

        jLabel7.setText("Fecha fin:");

        jdcFechaInicio.setDateFormatString("dd/MM/yyyy");
        jdcFechaInicio.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                jdcFechaInicioKeyTyped(evt);
            }
        });

        jdcFechaFin.setDateFormatString("dd/MM/yyyy");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jdcFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel7)
                .addGap(18, 18, 18)
                .addComponent(jdcFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jdcFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(jLabel7)
                    .addComponent(jdcFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnEnviarPlanificacion.setText("Enviar Planificación");
        btnEnviarPlanificacion.setActionCommand("");

        btnReplanificar.setText("Replanificar");
        btnReplanificar.setActionCommand("");

        btnCancelar.setText("Cancelar");

        btnAceptar.setText("Aceptar");
        btnAceptar.setActionCommand("");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btnEnviarPlanificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnReplanificar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnReplanificar)
                    .addComponent(btnAceptar)
                    .addComponent(btnCancelar)
                    .addComponent(btnEnviarPlanificacion))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jdcFechaInicioKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdcFechaInicioKeyTyped
       
    }//GEN-LAST:event_jdcFechaInicioKeyTyped

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed

        this.datFechaInicio = null;
        this.datFechaFin = null;
        
        String strFechaInicio;
        String strFechaFin;
        
        
        if (jdcFechaInicio.getDate() != null && jdcFechaFin.getDate() != null){
            
            //formato para las 2 fechas
            this.datFechaInicio = this.jdcFechaInicio.getDate();
            jdcFechaInicio.enableInputMethods(false);
            SimpleDateFormat formato1 = new SimpleDateFormat("yyyy/MM/dd");
            strFechaInicio = formato1.format(datFechaInicio);

            this.datFechaFin = this.jdcFechaFin.getDate();
            jdcFechaFin.enableInputMethods(false);
            SimpleDateFormat formato2 = new SimpleDateFormat("yyyy/MM/dd");
            strFechaFin = formato2.format(datFechaFin);


            int intFecha = 0;
            intFecha = jdcFechaInicio.getDate().compareTo(jdcFechaFin.getDate());
            if (intFecha == 1) {
                GUI.msjAlerta("Fecha incial debe ser menor que fecha final");
            } else {
            
                BE_Planificacion objBE_Planificacion = new BE_Planificacion();
                objBE_Planificacion.setStrFechaInicio(strFechaInicio);
                objBE_Planificacion.setDatFechaInicio(this.datFechaInicio);
                objBE_Planificacion.setStrFechaFin(strFechaFin);
                objBE_Planificacion.setDatFechaFin(this.datFechaFin);
                
                BE_Requerimiento objBE_Requerimiento = new BE_Requerimiento();
                objBE_Requerimiento.setIdRequerimiento(this.objBERequerimientoSeleccionado.getIdRequerimiento());
                objBE_Planificacion.setObjBE_Requerimiento(objBE_Requerimiento);
                try {
                    if (Comun.GUI.msjPreguntaSiNo("¿Seguro que desea registrar su Planificación?")) {
                        BL_Planificacion.obtenerInstancia().registrarPlanificacion(objBE_Planificacion);
                       Comun.GUI.msjAlerta("Se Registro la Planificación Correctamente");                 
                }
                   
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                }
                try {
                    BL_Requerimiento.obtenerInstancia().actualizarRequerimientoPlanificado(this.objBERequerimientoSeleccionado.getIdRequerimiento());
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                }
                ((Frm_BandejaTarea) (this.frmPadre)).setVisible(true); 
                

               try {
                    ((Frm_BandejaTarea) (this.frmPadre)).cargarListaRequerimientos(this.objBEPersonal);
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Planificacion.class.getName()).log(Level.SEVERE, null, ex);
                }
                this.dispose(); 
            }
        }else{
            GUI.msjAlerta("Seleccione un rango de fechas ");
        }
        
        
    }//GEN-LAST:event_btnAceptarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnEnviarPlanificacion;
    private javax.swing.JButton btnReplanificar;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private com.toedter.calendar.JDateChooser jdcFechaFin;
    private com.toedter.calendar.JDateChooser jdcFechaInicio;
    private javax.swing.JTextArea jtxDescripcion;
    private javax.swing.JLabel lblCantHoras;
    private javax.swing.JLabel lblCantRecursos;
    private javax.swing.JLabel lblCodigo;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JTextField txtCantHoras;
    private javax.swing.JTextField txtCantRecursos;
    private javax.swing.JTextField txtCodigo;
    private javax.swing.JTextField txtNombre;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the objBEPersonal
     */
    public BE_Personal getObjBEPersonal() {
        return objBEPersonal;
    }

    /**
     * @param objBEPersonal the objBEPersonal to set
     */
    public void setObjBEPersonal(BE_Personal objBEPersonal) {
        this.objBEPersonal = objBEPersonal;
    }

    /**
     * @return the objBEUsuario
     */
    public BE_Usuario getObjBEUsuario() {
        return objBEUsuario;
    }

    /**
     * @param objBEUsuario the objBEUsuario to set
     */
    public void setObjBEUsuario(BE_Usuario objBEUsuario) {
        this.objBEUsuario = objBEUsuario;
    }

    /**
     * @return the objBERequerimientoSeleccionado
     */
    public BE_Requerimiento getObjBERequerimientoSeleccionado() {
        return objBERequerimientoSeleccionado;
    }

    /**
     * @param objBERequerimientoSeleccionado the objBERequerimientoSeleccionado to set
     */
    public void setObjBERequerimientoSeleccionado(BE_Requerimiento objBERequerimientoSeleccionado) {
        this.objBERequerimientoSeleccionado = objBERequerimientoSeleccionado;
    }

    /**
     * @return the intOpcion
     */
    public int getIntOpcion() {
        return intOpcion;
    }

    /**
     * @param intOpcion the intOpcion to set
     */
    public void setIntOpcion(int intOpcion) {
        this.intOpcion = intOpcion;
    }

    /**
     * @return the datFechaInicio
     */
    public Date getDatFechaInicio() {
        return datFechaInicio;
    }

    /**
     * @param datFechaInicio the datFechaInicio to set
     */
    public void setDatFechaInicio(Date datFechaInicio) {
        this.datFechaInicio = datFechaInicio;
    }

    /**
     * @return the datFechaFin
     */
    public Date getDatFechaFin() {
        return datFechaFin;
    }

    /**
     * @param datFechaFin the datFechaFin to set
     */
    public void setDatFechaFin(Date datFechaFin) {
        this.datFechaFin = datFechaFin;
    }
}
